/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Vista;

import Control.Control;

/**
 *
 * @author Charlie
 */
public class ProfesorAsignar extends javax.swing.JPanel {

    /**
     * Creates new form ProfesorAsignar
     */
    private Control control;

    public ProfesorAsignar(Control pControl) {
        this.control = pControl;
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jSpinner1 = new javax.swing.JSpinner();
        jLabel1 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        nombreProfeL = new javax.swing.JLabel();
        cedulaProfeL = new javax.swing.JLabel();
        nombreProfeL1 = new javax.swing.JLabel();
        cedulaProfeL1 = new javax.swing.JLabel();

        setBackground(new java.awt.Color(255, 255, 255));
        setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jSpinner1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jSpinner1.setModel(new javax.swing.SpinnerNumberModel(0, 0, 48, 1));
        add(jSpinner1, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 130, -1, -1));

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel1.setText("Cantidad de lecciones:");
        add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 130, -1, -1));

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/Regresar.png"))); // NOI18N
        jButton1.setBorder(null);
        jButton1.setBorderPainted(false);
        jButton1.setContentAreaFilled(false);
        jButton1.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/RegresarPressed.png"))); // NOI18N
        jButton1.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/RegresarHover.png"))); // NOI18N
        add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(20, 30, -1, -1));

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/Guardar.png"))); // NOI18N
        jButton2.setBorder(null);
        jButton2.setBorderPainted(false);
        jButton2.setContentAreaFilled(false);
        jButton2.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/GuardarPressed.png"))); // NOI18N
        jButton2.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource("/Vista/imgs/GuardarHover.png"))); // NOI18N
        add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 460, -1, -1));

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel2.setText("Niveles");
        add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 100, -1, -1));

        jLabel3.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel3.setText("Grupo guía");
        add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(560, 100, -1, -1));

        jLabel4.setForeground(new java.awt.Color(255, 0, 0));
        jLabel4.setText("* Mensaje de error");
        add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 440, -1, -1));
        jLabel4.setVisible(false);

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {"setimo"},
                {"octavo"},
                {"noveno"},
                {"decimo"},
                {"undecimo"}
            },
            new String [] {
                "Nivel"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable1MouseClicked(evt);
            }
        });
        jScrollPane3.setViewportView(jTable1);

        add(jScrollPane3, new org.netbeans.lib.awtextra.AbsoluteConstraints(410, 130, 90, 110));

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null},
                {null},
                {null},
                {null},
                {null},
                {null},
                {null},
                {null},
                {null},
                {null},
                {null},
                {null}
            },
            new String [] {
                "Seccion"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane4.setViewportView(jTable2);

        add(jScrollPane4, new org.netbeans.lib.awtextra.AbsoluteConstraints(560, 130, 150, 220));

        nombreProfeL.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        add(nombreProfeL, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 160, -1, -1));
        nombreProfeL.getAccessibleContext().setAccessibleName("nombreProfeL");

        cedulaProfeL.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        add(cedulaProfeL, new org.netbeans.lib.awtextra.AbsoluteConstraints(150, 190, -1, -1));

        nombreProfeL1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        nombreProfeL1.setText("Nombre:");
        add(nombreProfeL1, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 160, -1, -1));

        cedulaProfeL1.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        cedulaProfeL1.setText("Cedula:");
        add(cedulaProfeL1, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 190, -1, -1));
    }// </editor-fold>//GEN-END:initComponents

    private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable1MouseClicked
       control.llenarSeccionesAsigProfe();
    }//GEN-LAST:event_jTable1MouseClicked

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel cedulaProfeL;
    private javax.swing.JLabel cedulaProfeL1;
    public javax.swing.JButton jButton1;
    public javax.swing.JButton jButton2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    public javax.swing.JLabel jLabel4;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    public javax.swing.JSpinner jSpinner1;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable2;
    private javax.swing.JLabel nombreProfeL;
    private javax.swing.JLabel nombreProfeL1;
    // End of variables declaration//GEN-END:variables


    public javax.swing.JLabel getCedulaProfeL() {
        return cedulaProfeL;
    }

    public void setCedulaProfeL(javax.swing.JLabel cedulaProfeL) {
        this.cedulaProfeL = cedulaProfeL;
    }

    public javax.swing.JTable getjTable1() {
        return jTable1;
    }

    public void setjTable1(javax.swing.JTable jTable1) {
        this.jTable1 = jTable1;
    }

    public javax.swing.JTable getjTable2() {
        return jTable2;
    }

    public void setjTable2(javax.swing.JTable jTable2) {
        this.jTable2 = jTable2;
    }

    public javax.swing.JLabel getNombreProfeL() {
        return nombreProfeL;
    }

    public void setNombreProfeL(javax.swing.JLabel nombreProfeL) {
        this.nombreProfeL = nombreProfeL;
    }
}
